import "../styles/main.scss";
// import "./log";
import "./online";
import "./inline";
import "./log";
import $ from "jquery";
import Window from "@/modules/components/Window";

$(() => {
  Window.create(
    1920,
    937,
    () => $("#app").get(0) as HTMLDivElement,
    () => $("#main").get(0) as HTMLDivElement
  );
  Window.autoResize();

  $("#pulpingButton").on("click", () => {
    localStorage.setItem("mixing-machine-save-info", "");
    window.location.href = "/mixing-process/machine/index.html?process=pulping";
  });

  $("#mixingButton").on("click", () => {
    localStorage.setItem("mixing-machine-save-info", "");
    window.location.href = "/mixing-process/machine/index.html?process=mixing";
  });

  $(window).on("resize", () => {
    Window.autoResize();
  });
});
